package labalgo;

public class Prodotto {
	private String des, marc, model;
	private int dep;
	float prez;
	private long codice;
	
	
	public void setDep(int de){
		this.dep=de;
	}
	
	public long getCodice() {
		return codice;
	}

	public Prodotto(long codice, String des, String marc, String model, int dep, float prez){
		this.des=des;
		this.marc=marc;
		this.model=model;
		this.dep=dep;
		this.prez=prez;
		this.codice=codice;
	}
	
	public Prodotto(Prodotto p){
		this.des=p.des;
		this.marc=p.marc;
		this.model=p.model;
		this.dep=p.dep;
		this.prez=p.prez;
		this.codice=p.codice;
	}

	public String getDes() {
		return des;
	}
	public String getMarc() {
		return marc;
	}
	public String getModel() {
		return model;
	}
	public int getDep() {
		return dep;
	}
	public float getPrez() {
		return prez;
	}
	
	
	public String toString(){
		return des + " " + marc + " " + model + " " + dep + " " + prez;
	}

}
